<template>
  <div class="app-container">    
    <el-table  :data="scheduleList" v-if="scheduleList && scheduleList.length > 0">
      <el-table-column type="index" width="55" label="序号" align="center" />
      <el-table-column label="节次" align="center" prop="section_name"/>
      <el-table-column label="课程" align="center" prop="course_name"/>
      <el-table-column label="教室" align="center" prop="room_name"/>
    </el-table>
    <el-alert :closable="false" title="您今日没有课程安排"  type="warning" v-else></el-alert>
  </div>
</template>

<script>
import { apiDs } from "@/api/openapi";

export default {
  name: "TeachSchedule",
  dicts: [],
  data() {
    return {
      scheduleList: []
    };
  },
  created() {
    apiDs('home_statics_schedule').then((response) => {
        this.scheduleList = response.data;
    });
  }
};
</script>
